package com.first.orange.service;

import com.first.orange.beans.Cart;
import com.first.orange.beans.UserCollection;

import java.util.List;

public interface CartService {

/**
 * Created on 2021/7/6.
 *
 * Author: 190120
 *
 * Description: 
 */

    /*JDResult addCart(Integer productId, Integer quantity, HttpServletRequest request, HttpServletResponse response);*/

    List<Cart> queryCartList(Integer userId);

    boolean delCart(Integer carId,Integer userId);


    boolean addColle(Integer productId, Integer userId);

    boolean updataCarts(String carId, String checked, String quantity, String amount);

    boolean updataAllCarts(String checked,String che);

    UserCollection selproductId(Integer productId, Integer userId);

    Cart selectCartByUTPP(Cart cart);

    int updataCart(Cart cart);

    int addCarts(Cart cart);
}
